import TalkObject from '../lib/talkObject';
const talkObject = new TalkObject();
export default class MakeTemporaryTalk {
    sendMessage() {
    }
    /*收到服务器回执信息的处理*/
    receiptMsg(data) {
        console.log(data);
        //1.添加消息记录
        //2.生成一条talk类型消息
        talkObject.addTalk(data.data.talk);              //添加消息记录   
        return {
            code: 200,
            data: {
                sign: 'talk',
                data: {
                    talk_id: data.data.talk.id,
                    type: 2,
                    content: null
                }
            }
        }
    }
    // 收到消息
    getMsg() {

    }
}